package com.zeta.eduservice.service.impl;

import com.zeta.eduservice.entity.EduClasss;
import com.zeta.eduservice.entity.question.EduCourse;
import com.zeta.eduservice.entity.question.EduCourseClass;
import com.zeta.eduservice.mapper.EduCourseClassMapper;
import com.zeta.eduservice.service.EduCourseClassService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

import org.springframework.stereotype.Service;

/**
 * <p>
 * 课程 班级中间表 服务实现类
 * </p>
 *
 * @author zeta
 * @since 2021-03-29
 */
@Service
public class EduCourseClassServiceImpl extends ServiceImpl<EduCourseClassMapper, EduCourseClass> implements EduCourseClassService {

	
	@Override
	public List<EduClasss> getClassListByCourseId(Page<EduClasss> page,String courseId) {
		
		return baseMapper.getClassListByCourseId(page, courseId);
	}

	@Override
	public List<EduCourse> getCourseListByClassId(Page<EduCourse> page ,String classId) {
		// TODO Auto-generated method stub
		return baseMapper.getCourseListByClassId(page, classId);
	}

}
